import { http } from "@/utils/http";

export const getHistoryListApi = data => {
  return http.get("/history/list", { params: data });
};

export const addHistoryApi = (data: object) => {
  return http.post("/history/add", { data });
};

export const updateHistoryApi = data => {
  return http.post("/history/update", { data });
};

export const delAllHistoryApi = () => {
  return http.post("/history/del_all");
};

export const batchHistoryApi = data => {
  return http.post("/history/del", { data });
};
